<?php defined('IN_ADMIN') or exit('No permission resources.'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RonCrm</title>
<link rel="stylesheet" type="text/css" href="<?php echo CSS_PATH;?>system.css"/>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>jquery.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>windowscommon.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>main_common.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH;?>Pager.class.js"></script>
<script type="text/javascript">
//设置ron_hash，保证数据安全
window.focus();
var ron_hash = '<?php echo $_SESSION['ron_hash'];?>';
$(document).ready(function(){
	 $('a').each(function(){
		var href = $(this).attr('href');
		if(href && href.indexOf('javascript:') == -1){
			if(href.indexOf('?') != -1){
				$(this).attr('href',href+'&ron_hash='+ron_hash);
			} else {
				$(this).attr('href',href+'?ron_hash='+ron_hash);
			}
		}
	 });
	$('form').each(function(){
		var html = "<input type='hidden' name='ron_hash' value='"+ron_hash+"'>";
		$(this).append(html);
	});



});
//onresize 事件会在窗口或框架被调整大小时发生。
window.onload = function (){
	if(!+"\v1" && !document.querySelector) { // for IE6 IE7
	  document.body.onresize = resize;
	} else { 
	  window.onresize = resize2;
	}
	function resize2() {
		wSize2();
		return false;
	}
};
//调整窗口大小
function wSize2(){
	var str=getWindowSize();
	var strs= new Array(); //定义一数组
	strs=str.toString().split(",");
	if(strs[1]<900){
		$('#main_content').css('width',900+'px');			
	}else{
		$('#main_content').css('width','100%');			
	}
}
wSize2();
</script>
</head>